package com.china.springbootmybatis.mapper;

import com.china.springbootmybatis.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(User record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(User record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    User selectByPrimaryKey(Integer id);

    List<User> selectByObject();

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(User record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(User record);
}